package com.java.spring.cloud.service.impl;

import com.java.spring.cloud.bean.Books;
import com.java.spring.cloud.mapper.BooksMapper;
import com.java.spring.cloud.service.BookService;
import com.java.spring.cloud.util.JsonResult;
import com.java.spring.cloud.util.ResultTool;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BookServiceImpl implements BookService {
    @Resource
    private BooksMapper booksMapper;
    @Override
    public JsonResult findAllBooks() {
        return ResultTool.success(booksMapper.find());
    }
}
